<%--
  Created by IntelliJ IDEA.
  User: fzy-2
  Date: 2021/5/18
  Time: 16:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path = request.getContextPath(); %>
<html>
<head>
    <meta charset="utf-8">
    <title>上机考试系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- le styles -->
    <link href="<%=path%>/css/bootstrap.css" rel="stylesheet">
    <link href="<%=path%>/css/bootstrap-datetimepicker.css" rel="stylesheet">
    <link href="<%=path%>/css/exam.css" rel="stylesheet">
    <style>
        body {
            padding-top: 60px;
            /* 60px to make the container go all the way to the bottom of the topbar */
        }
    </style>
    <link href="<%=path%>/css/bootstrap-responsive.css" rel="stylesheet">

    <!-- le html5 shim, for ie6-8 support of html5 elements -->
    <!--[if lt ie 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>

<body>

<%@ include file="/WEB-INF/pages/Teacher/teacher_header.jsp"%>
<div class="container">
    <h1>
        <img src="<%=path%>/img/exam-teacher.png"  alt=""/> 上机考试管理
    </h1>


    <form class="exam-form form-inline" action="" method="post">
        <h4>编辑考试信息</h4>
        <input type="hidden" name="id" value="1">
        考试名称：
        <label>
            <input type="text" name="ename" value="java" />
        </label>
        考试时间：
        <div class="controls input-append date" id="datetimepicker" data-link-field="etime" >
            <label>
                <input class="span2" type="text" value="2021-5-18 16:58:31" readonly/>
            </label>
            <span class="add-on"><i class="icon-remove"></i></span>
            <span class="add-on"><i class="icon-th"></i></span>
        </div>
        <input type="hidden" id="etime" name="etime" />
        <div class="control-group">
            <div class="controls">
                <label class="checkbox"> <input type="checkbox" name="eautostart"
                                                value="true"  /> 自动开始
                </label>
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <input type="submit" name="action" class="btn btn-primary" value="修改" />
            </div>
        </div>
    </form>

    <form class="exam-form form-inline" action="" enctype="multipart/form-data" method="post">
        <h4>上传试卷</h4>
        <input type="hidden" name="id" value="1">


        <input type="file" name="paper" />
        <input type="submit" class="btn btn-primary" value="上传" />

    </form>

    <form class="exam-form form-inline" action="" method="post">
        <h4>导入学生名单</h4>
        <p>目前设定参加此次考试的学生人数：0</p>
        <input type="hidden" name="eid" value="1">
        <input type="submit" class="btn btn-primary" value="继续导入" />
    </form>

    <form class="exam-form form-inline" action="" method="post">
        <h4>开启考试</h4>
        <input type="hidden" name="id" value="1">





        <p class="text-warning">尚未上传试卷。</p>
        <button type="submit" class="btn btn-warning btn-large"><i class="icon-off"></i> 开启</button>




    </form>


</div>
<!-- /container -->
<!-- placed at the end of the document so the pages load faster -->
<script src="<%=path%>/js/jquery.min.js"></script>
<script src="<%=path%>/js/bootstrap.min.js"></script>
<script src="<%=path%>/js/bootstrap-datetimepicker.js"></script>
<script src="<%=path%>/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
</body>
</html>
<script type="text/javascript">
    $("#datetimepicker").datetimepicker({
        format: "yyyy-mm-dd hh:ii",
        autoclose: true,
        todayBtn: true,
        minuteStep: 10,
        minView:0,
        pickerPosition:'bottom-left',
        language:'zh-CN'
    });
</script>
